package org.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName ClassQuestion
 * @Description TODO
 * @Author qiuye
 * @Date 2025年08月18日 11:39
 * @Version 1.0
 */
@Data
public class ClassQuestion {
    private int id;
    private String question;
    private int userId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date time;
    private int count;
    private User user;
    private ClassAnswer classAnswer;
}
